import * as components from '@/components'

export const useComponents = vm => {
    Object.entries(components).forEach(([key, component]) => {
        if (component.install && typeof component.install === 'function') {
            vm.use(component)
        } else {
            vm.component(key, component)
        }
    })
}